package com.coocaa.ops.admin.v1.mergeposter.constant;

/**
 * @author : bijiahao
 * @date: 2019/8/29.
 * @description:
 */
public final class CategoryIdConstants {
    /**
     * 教育
     */
    public static final Integer EDU = 30;
    /**
     * 电影
     */
    public static final Integer MOVIE = 4;
    /**
     * 电视剧
     */
    public static final Integer SERIES = 1;
    /**
     * 综艺
     */
    public static final Integer VARIETY = 5;

    public static boolean isEdu(Integer categoryId) {
        return EDU.equals(categoryId);
    }

    public static boolean isMovie(Integer categoryId) {
        return MOVIE.equals(categoryId);
    }

    public static boolean isSeries(Integer categoryId) {
        return SERIES.equals(categoryId);
    }

    public static boolean isVariety(Integer categoryId) {
        return VARIETY.equals(categoryId);
    }

    /**
     * 目前可以显示评分的分类
     *
     * @param categoryId
     * @return
     */
    public static boolean isCanShowScore(Integer categoryId) {
        return isMovie(categoryId)
                || isSeries(categoryId)
                || isVariety(categoryId)
                ;
    }


    private CategoryIdConstants() {

    }
}
